package com.jnu.supermarket.data;

import java.io.Serializable;

public class ShopItem implements Serializable {
    private String name;//该成员变量不能被更改
    private  int pictureId;
    private double price;

    public ShopItem(String name, int pictureId, double price) {
        this.name=name;
        this.pictureId=pictureId;
        this.price=price;
    }

    public String getName() {
        return name;
    }

    public int getPictureId() {
        return pictureId;
    }

    public double getPrice() {
        return price;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPictureId(int pictureId) {
        this.pictureId = pictureId;
    }

    public void setPrice(double price) {
        this.price = price;
    }

}

